<script setup lang="ts">
import { RouterView, useRouter } from 'vue-router'
const router = useRouter()
const routeCascader = () => {
    router.push({
        name: 'cascader'
    })
}
const routeInterface = () => {
    router.push({
        name: 'interface'
    })
}
</script>

<template>
  <n-message-provider>
    <n-button @click="routeCascader">级联选择框</n-button>
    <n-button @click="routeInterface">系统接口</n-button>
    <n-divider title-placement="left">
    页面切换
  </n-divider>
    <RouterView />
  </n-message-provider>
</template>

<style scoped>

</style>
